<?php
namespace app\admin\validate;
use think\Validate;
class Access extends Validate
{
    protected $rule = [
        'app_id' => 'require',
        'access_id' => 'require|array'
    ];
    protected $message = [
        'app_id.require' => '参数错误',
        'access_id.require' => '参数错误',
        'access_id.array' => '参数错误'
    ];
    protected $scene = [
        'appAccess' => ['app_id'],
        'setappAccess' => ['app_id', 'access_id'],
    ];
}